<?php

namespace App\Containers\AppSection\Ban\Actions;

use App\Containers\AppSection\Ban\Tasks\GetAllBansTask;
use App\Ship\Parents\Actions\Action;

class GetBannedUsersAction extends Action
{
    public function run()
    {
        return app(GetAllBansTask::class)
            ->addRequestCriteria()
            ->addOrderByCriteria()
            ->byBannableTypes('user')
            ->banned()
            ->run();
    }
}
